package vista;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.SwingConstants;

import javax.swing.WindowConstants;
import javax.swing.border.LineBorder;
import javax.swing.SwingUtilities;

import modelo.Niveles;

import controlador.ControladorJuego;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class FrameJugarMasterMind extends javax.swing.JFrame {
	private JPanel jPanelMasterMind;
	private JPanel jPanelSeleccNivel;
	private JLabel jLabelSeleccNivel;
	private JRadioButton jRadBttN1;
	private JRadioButton jRadBttN2;
	private JRadioButton jRadBttN3;
	private JButton jBttJugar;
	private JButton jBttNuevoJuego;
	private JButton jBttSalir;
	private JButton jBttRecord;
	private JPanel panelIntentos;
	private JPanel panelColores;
	private JLabel Jlblcontador;
	private JLabel Jlbltiempo;
	private JLabel JlblTitulo;
	private JPanel panelSolucion;

	/**
	* Auto-generated main method to display this JFrame
	*/

	
	public FrameJugarMasterMind() {
		super();
		initGUI();
		
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				jPanelMasterMind = new JPanel();
				getContentPane().add(jPanelMasterMind);
				jPanelMasterMind.setBounds(10, 10, 590, 800);
				jPanelMasterMind.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
				jPanelMasterMind.setLayout(null);
				{
					jPanelSeleccNivel = new JPanel();
					jPanelMasterMind.add(jPanelSeleccNivel);
					jPanelSeleccNivel.setBounds(10, 52, 160, 140);
					jPanelSeleccNivel.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
					jPanelSeleccNivel.setLayout(null);
					{
						jLabelSeleccNivel = new JLabel();
						jPanelSeleccNivel.add(jLabelSeleccNivel);
						jLabelSeleccNivel.setText("Seleccionar Nivel");
						jLabelSeleccNivel.setBounds(20, 8, 140, 15);
					}
					{
						jRadBttN1 = new JRadioButton();
						jPanelSeleccNivel.add(jRadBttN1);
						jRadBttN1.setText("Basico");
						jRadBttN1.setBounds(20, 25, 120, 19);
					}
					{
						jRadBttN2 = new JRadioButton();
						jPanelSeleccNivel.add(jRadBttN2);
						jRadBttN2.setText("Intermedio");
						jRadBttN2.setBounds(20, 50, 120, 19);
					}
					{
						jRadBttN3 = new JRadioButton();
						jPanelSeleccNivel.add(jRadBttN3);
						jRadBttN3.setText("Experto");
						jRadBttN3.setBounds(20, 75, 120, 19);
					}
					{
						jBttJugar = new JButton();
						jPanelSeleccNivel.add(jBttJugar);
						jBttJugar.setText("Jugar");
						jBttJugar.setBounds(20, 110, 120, 24);						
					}
				}
				panelColores = new JPanel();
				jPanelMasterMind.add(panelColores);
				panelColores.setBounds(10, 202, 160, 200);//posicion del panel 
				panelColores.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
				
				panelIntentos = new JPanel();
				jPanelMasterMind.add(panelIntentos);
				panelIntentos.setBounds(180, 85, 400, 380);//posicion del panel 
				panelIntentos.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
				
				panelSolucion = new JPanel();
				jPanelMasterMind.add(panelSolucion);
				panelSolucion.setBounds(180, 489, 400, 40);//posicion del panel 
				panelSolucion.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
				
				jBttNuevoJuego = new JButton();
				jPanelMasterMind.add(jBttNuevoJuego);
				jBttNuevoJuego.setText("Nuevo Juego");
				jBttNuevoJuego.setBounds(10, 410, 160, 30);						
				
				jBttRecord = new JButton();
				jPanelMasterMind.add(jBttRecord);
				jBttRecord.setText("Record");
				jBttRecord.setBounds(10, 450, 160, 30);	
				
				
				jBttSalir = new JButton();
				jPanelMasterMind.add(jBttSalir);
				jBttSalir.setText("Salir");
				jBttSalir.setBounds(10, 490, 160, 30);	
				{
					JlblTitulo = new JLabel();
					jPanelMasterMind.add(JlblTitulo);
					JlblTitulo.setText("MasterMind");
					JlblTitulo.setBounds(13, 13, 564, 33);
					JlblTitulo.setHorizontalAlignment(SwingConstants.CENTER);
					JlblTitulo.setFont(new java.awt.Font("Tlwg Typist",1,28));
				}
				{
					Jlbltiempo = new JLabel();
					jPanelMasterMind.add(Jlbltiempo);
					Jlbltiempo.setText("Tiempo");
					Jlbltiempo.setBounds(404, 52, 90, 27);
					Jlbltiempo.setFont(new java.awt.Font("Dialog",0,16));
					Jlbltiempo.setHorizontalAlignment(SwingConstants.RIGHT);
				}
				{
					Jlblcontador = new JLabel();
					jPanelMasterMind.add(Jlblcontador);
					Jlblcontador.setText("0");
					Jlblcontador.setBounds(506, 52, 71, 27);
					Jlblcontador.setFont(new java.awt.Font("Dialog",1,18));
					Jlblcontador.setHorizontalAlignment(SwingConstants.RIGHT);
				}
			}		
			pack();
			this.setSize(630, 750);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}		
	}

	public JPanel getjPanelMasterMind() {
		return jPanelMasterMind;
	}

	public JPanel getjPanelSeleccNivel() {
		return jPanelSeleccNivel;
	}

	public JLabel getjLabelSeleccNivel() {
		return jLabelSeleccNivel;
	}

	public JRadioButton getjRadBttN1() {
		return jRadBttN1;
	}

	public JRadioButton getjRadBttN3() {
		return jRadBttN3;
	}

	public JButton getjBttJugar() {
		return jBttJugar;
	}

	public JRadioButton getjRadBttN2() {
		return jRadBttN2;
	}
	
	public JPanel getPanelSolucion() {
		return panelSolucion;
	}

	public void setPanelSolucion(JPanel panelSolucion) {
		this.panelSolucion = panelSolucion;
	}

	public JPanel getPanelIntentos() {
		return panelIntentos;
	}

	public void setPanelIntentos(JPanel panelIntentos) {
		this.panelIntentos = panelIntentos;
	}

	public JButton getjBttNuevoJuego() {
		return jBttNuevoJuego;
	}

	public void setjBttNuevoJuego(JButton jBttNuevoJuego) {
		this.jBttNuevoJuego = jBttNuevoJuego;
	}

	public JLabel getJlblcontador() {
		return Jlblcontador;
	}

	public void setJlblcontador(JLabel jlblcontador) {
		Jlblcontador = jlblcontador;
	}

	public void setjBttJugar(JButton jBttJugar) {
		this.jBttJugar = jBttJugar;
	}

	public JPanel getPanelColores() {
		return panelColores;
	}

	public void setPanelColores(JPanel panelColores) {
		this.panelColores = panelColores;
	}

	public JButton getjBttSalir() {
		return jBttSalir;
	}

	public void setjBttSalir(JButton jBttSalir) {
		this.jBttSalir = jBttSalir;
	}

	public JButton getjBttRecord() {
		return jBttRecord;
	}

	public void setjBttRecord(JButton jBttRecord) {
		this.jBttRecord = jBttRecord;
	}
	
	
	
}
